﻿namespace WE
{
    internal class Program
    {
        /// <summary>
        /// 维基尼亚加密法
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //用户输入明文和密钥
            Console.WriteLine("请输入明文");
            string plain = Console.ReadLine();
            Console.WriteLine("请输入密钥");
            string key = Console.ReadLine();
            //加密
            Encoder encoder = new Encoder();
            encoder.PlainText = plain;
            encoder.Key = key;
            encoder.Encode();
            //输出密文
            Console.WriteLine($"密文为{encoder.CipherText}");
        }
    }
}